package cn.stylefeng.guns.modular.base.item.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 基础数据-存货分类封装类
 *
 * @author caoxf
 * @since 2023/11/20 22:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ItemClassRequest extends BaseRequest {

    /**
     * 存货分类代码
     */
    @NotNull(message = "存货分类代码不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("存货分类代码")
    private String classCode;

    /**
     * 存货分类名称
     */
    @ChineseDescription("存货分类名称")
    private String className;


    /**
     * 批量删除用的id集合
     */
    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<Long> batchDeleteIdList;

}
